-- GENERATED SPELL FOR [Zarakh] --


function spell0_17683(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17683', 30000, 1)
end

function spell1_17683(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17683', 5256, 1)
end

function Sorts_17683(pUnit, Event)
local choix_sorts_17683 = math.random(0, 1)
if choix_sorts_17683 == 0 then
pUnit:RegisterEvent('spell0_17683', 1, 1)
end
if choix_sorts_17683 == 1 then
pUnit:RegisterEvent('spell1_17683', 1, 1)
end
end

function mob17683_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17683', math.random(1500, 3000), 1)
end

function mob17683_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17683_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17683_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17683, 1, 'mob17683_Action')
RegisterUnitEvent(17683, 2, 'mob17683_Leave')
RegisterUnitEvent(17683, 3, 'mob17683_Kill')
RegisterUnitEvent(17683, 4, 'mob17683_Die')
